package com.enjoyor.soa.traffic.api.dto.ejcds;

import java.io.Serializable;

public class EventWarnConfDto implements Serializable {

	/**
	 * 版本号
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 预警配置编号，主键，取时间精确到毫秒
	 */
	private String warnConfId;
	/**
	 * 预警配置名称
	 */
	private String warnConfName;
	/**
	 * 预警类型编号
	 */
	private String warnTypeId;
	/**
	 * 预警类型名称
	 */
	private String warnTypeName;
	/**
	 * 特征值类型编号
	 */
	private String specialTypeId;
	/**
	 * 特征值类型名称
	 */
	private String specialTypeName;
	/**
	 * 预警周期（日、周、月）编号
	 */
	private String periodTypeId;
	/**
	 * 预警周期（日、周、月）名称
	 */
	private String periodTypeName;
	/**
	 * 部门编号
	 */
	private String deptId;
	/**
	 * 部门名称
	 */
	private String deptName;

	/**
	 * 警情类型编号
	 */
	private String typeId;
	/**
	 * 警情类型名称
	 */
	private String typeName;

	/**
	 * 一级阈值
	 */
	private String firstLimit;
	/**
	 * 二级阈值
	 */
	private String secondLimit;
	/**
	 * 三级阈值
	 */
	private String thirdLimit;
	/**
	 * 四级阈值
	 */
	private String fourthLimit;
	/**
	 * 是否使用
	 */
	private String isUse;
	/**
	 * 预警配置备注
	 */
	private String warnConfMemo;

	/***********************************************/
	/**
	 * 警情总数
	 */
	private String eventSum;
	/**
	 * 判断是否已报警
	 */
	private String reported;

	public String getWarnConfId() {
		return warnConfId;
	}

	public void setWarnConfId(String warnConfId) {
		this.warnConfId = warnConfId;
	}

	public String getWarnConfName() {
		return warnConfName;
	}

	public void setWarnConfName(String warnConfName) {
		this.warnConfName = warnConfName;
	}

	public String getWarnTypeId() {
		return warnTypeId;
	}

	public void setWarnTypeId(String warnTypeId) {
		this.warnTypeId = warnTypeId;
	}

	public String getWarnTypeName() {
		return warnTypeName;
	}

	public void setWarnTypeName(String warnTypeName) {
		this.warnTypeName = warnTypeName;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getIsUse() {
		return isUse;
	}

	public void setIsUse(String isUse) {
		this.isUse = isUse;
	}

	public String getWarnConfMemo() {
		return warnConfMemo;
	}

	public void setWarnConfMemo(String warnConfMemo) {
		this.warnConfMemo = warnConfMemo;
	}

	/**
	 * 返回eventSum
	 * 
	 * @return eventSum
	 */
	public String getEventSum() {
		return eventSum;
	}

	public int getEventSumInt() {
		try {
			return Integer.parseInt(eventSum);
		} catch (Exception ex) {
			return 0;
		}
	}

	/**
	 * 设置 eventSum
	 * 
	 * @param eventSum
	 *            eventSum
	 */
	public void setEventSum(String eventSum) {
		this.eventSum = eventSum;
	}

	public void addEventSum(int num) {
		try {
			this.eventSum = String.valueOf(Integer.parseInt(this.eventSum) + num);
		} catch (Exception ex) {
			this.eventSum = String.valueOf(num);
		}
	}

	/**
	 * 返回reported
	 * 
	 * @return reported
	 */
	public String getReported() {
		return reported;
	}

	/**
	 * 设置 reported
	 * 
	 * @param reported
	 *            reported
	 */
	public void setReported(String reported) {
		this.reported = reported;
	}

	/**
	 * 设置是否已报警
	 * 
	 * @param reported
	 */
	public void setReportedBl(boolean reported) {
		this.reported = String.valueOf(reported);
	}

	public boolean isReported() {
		try {
			return Boolean.parseBoolean(this.reported);
		} catch (Exception ex) {
			return false;
		}
	}

	/**
	 * 返回specialTypeId
	 * 
	 * @return specialTypeId
	 */
	public String getSpecialTypeId() {
		return specialTypeId;
	}

	/**
	 * 设置 specialTypeId
	 * 
	 * @param specialTypeId
	 *            specialTypeId
	 */
	public void setSpecialTypeId(String specialTypeId) {
		this.specialTypeId = specialTypeId;
	}

	/**
	 * 返回specialTypeName
	 * 
	 * @return specialTypeName
	 */
	public String getSpecialTypeName() {
		return specialTypeName;
	}

	/**
	 * 设置 specialTypeName
	 * 
	 * @param specialTypeName
	 *            specialTypeName
	 */
	public void setSpecialTypeName(String specialTypeName) {
		this.specialTypeName = specialTypeName;
	}

	/**
	 * 返回periodTypeId
	 * 
	 * @return periodTypeId
	 */
	public String getPeriodTypeId() {
		return periodTypeId;
	}

	/**
	 * 设置 periodTypeId
	 * 
	 * @param periodTypeId
	 *            periodTypeId
	 */
	public void setPeriodTypeId(String periodTypeId) {
		this.periodTypeId = periodTypeId;
	}

	/**
	 * 返回periodTypeName
	 * 
	 * @return periodTypeName
	 */
	public String getPeriodTypeName() {
		return periodTypeName;
	}

	/**
	 * 设置 periodTypeName
	 * 
	 * @param periodTypeName
	 *            periodTypeName
	 */
	public void setPeriodTypeName(String periodTypeName) {
		this.periodTypeName = periodTypeName;
	}

	/**
	 * 返回firstLimit
	 * 
	 * @return firstLimit
	 */
	public String getFirstLimit() {
		return firstLimit;
	}

	/**
	 * 设置 firstLimit
	 * 
	 * @param firstLimit
	 *            firstLimit
	 */
	public void setFirstLimit(String firstLimit) {
		this.firstLimit = firstLimit;
	}

	/**
	 * 返回secondLimit
	 * 
	 * @return secondLimit
	 */
	public String getSecondLimit() {
		return secondLimit;
	}

	/**
	 * 设置 secondLimit
	 * 
	 * @param secondLimit
	 *            secondLimit
	 */
	public void setSecondLimit(String secondLimit) {
		this.secondLimit = secondLimit;
	}

	/**
	 * 返回thirdLimit
	 * 
	 * @return thirdLimit
	 */
	public String getThirdLimit() {
		return thirdLimit;
	}

	/**
	 * 设置 thirdLimit
	 * 
	 * @param thirdLimit
	 *            thirdLimit
	 */
	public void setThirdLimit(String thirdLimit) {
		this.thirdLimit = thirdLimit;
	}

	/**
	 * 返回fourthLimit
	 * 
	 * @return fourthLimit
	 */
	public String getFourthLimit() {
		return fourthLimit;
	}

	/**
	 * 设置 fourthLimit
	 * 
	 * @param fourthLimit
	 *            fourthLimit
	 */
	public void setFourthLimit(String fourthLimit) {
		this.fourthLimit = fourthLimit;
	}
}
